package com.study.talk.module.netty.message.response;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  创建群聊响应
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateGroupResponse extends TalkMessage {

    @ApiModelProperty("创建群的名称")
    private String groupName;

    @ApiModelProperty("创建群的id")
    private Integer groupId;

    @ApiModelProperty("是否创建群成功")
    private Boolean success;

    @ApiModelProperty("创建失败原因")
    private String reason;

    @Override
    public byte getType() {
        return MessageType.CREATE_GROUP_RESPONSE;
    }
}
